package top.zhuyougu.service;

import top.zhuyougu.common.ResponseResult;
import top.zhuyougu.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统管理-用户基础信息表 服务类
 * </p>
 *
 * @author 猪油骨
 * @since 2022-12-10 01:15:43
 */
public interface UserService extends IService<User> {
    ResponseResult listUser(String username, Integer loginType);

    ResponseResult getUserById(Integer id);

    ResponseResult insertUser(User user);

    ResponseResult updateUser(User user);

    ResponseResult deleteBatch(List<Integer> ids);

    ResponseResult getCurrentUserInfo();

    ResponseResult getCurrentUserMenu();

    ResponseResult updatePassword(Map<String, String> map);

    ResponseResult listOnlineUsers(String keywords);

    ResponseResult kick(String token);
}
